const request = require("@/common/api/interceptor");

exports.login = (data) => {
    return request.post({
        apiName: "登录",
        url: "login/authorize_mobile",
        data: data,
        loading: true,
    });
};

exports.authorizeUserInfo = (data) => {
    return request.post({
        apiName: " 授权用户信息",
        url: "we_chat/authorize_user_info",
        data: data,
        loading: true,
    });
};

exports.getMovieList = (data) => {
    return request.get({
        apiName: "获取影视列表",
        url: "api/video/list",
        data: data,
        loading: false,
    });
};

exports.getMovieDetail = (data) => {
    return request.get({
        apiName: "获取影视详情",
        url: "api/video/detail",
        data: data,
        loading: false,
    });
};

exports.getConfig = (data) => {
    return request.get({
        apiName: "获取影视详情",
        url: "api/video/getConfig",
        data: data,
        loading: false,
    });
};
exports.sendEmailByVideo = (data) => {
    return request.post({
        apiName: "发送邮箱",
        url: "api/video/sendEmailByVideo",
        data: data,
        loading: false,
    });
};
